package mysql

import "gorm.io/gorm"

type Goods struct {
	gorm.Model
	Name     string  `json:"name"`
	Price    float64 `json:"price"`
	Quantity string  `json:"quantity"`
}

func (g *Goods) GoodsFind(GoodsId int) error {
	return DB.Model(&Goods{}).Where("id = ?", GoodsId).Find(&g).Error
}
